I used to blame myself for overeating. Then I realized my brain was the real problem — and this is how I fixed it.